package com.sora.eduservice.service;

import com.sora.eduservice.entity.EduChapter;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sora.eduservice.entity.chapter.ChapterVo;

import java.util.List;

/**
 * <p>
 * 课程 服务类
 * </p>
 *
 * @author sora
 * @since 2022-12-28
 */
public interface EduChapterService extends IService<EduChapter> {
    /**
     * 获取章带小节
     * @param courseId
     * @return
     */
    List<ChapterVo> getChapterVoByCourseId(String courseId);
    /**
     * 删除章节
     * @param chapterId 章id
     * @return
     */
    boolean deleteChapterById(String chapterId);

    /**
     * 根据课程id删除章
     * @param courseId
     */
    void removeChapterByCourseId(String courseId);
}
